<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>毛玻璃效果</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        input {
            border: none;
            outline: none;
        }

        button {
            border: none;
        }

        body {
            position: relative;
            width: 100%;
            height: 100%;
            background: red;
            background: url(./images/背景图.jpg);
            background-size: cover;
        }

        .box {
            position: absolute;
            left: 50%;
            width: 400px;
            height: 500px;
            margin-left: -200px;
            background: rgba(255, 255, 255, 0.5);
            transform: translate(0, 120px);
            backdrop-filter: blur(20px);
            box-shadow: 0 2px 5px #000;
        }

        .box img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin: 64px 0 0 150px;
        }

        .box p {
            color: rgb(9, 9, 9);
            font-size: 25px;
            font-weight: bold;
            text-align: center;
            margin-top: 31px;
            margin-bottom: 50px;
        }

        .box input {
            display: block;
            width: 300px;
            height: 40px;
            margin-left: 50px;
            margin-bottom: 30px;
            padding-left: 10px;
            border-bottom: 1px solid #999;
            /* background: ; */
            background: rgba(255, 255, 255, 0);
            backdrop-filter: hue(30deg);
        }

        .box .btn {
            text-align: center;
        }

        .box .btn .login {
            color: #fff;
            width: 120px;
            height: 50px;
            font-size: 18px;
            margin-right: 30px;
            background: #3352c3;
        }

        .box .btn .enroll {
            color: #fff;
            width: 120px;
            height: 50px;
            font-size: 18px;
            background: #e3351c;
        }
    </style>
</head>

<body>
    <div class="box">
        <img src="./images/头像.jpg" alt="">
        <p>Mr.TU</p>
        <div class="message">
            <input type="text" placeholder="账号">
            <input type="password" placeholder="密码">
        </div>
        <div class="btn">
            <button class="login">Login</button>
            <button class="enroll">Enroll</button>
        </div>
    </div>
</body>

</html>